package guanqu.beans;


import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_IrrBSPerson")
public class IrrBSPerson implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6508243612557108233L;
	@Id
	@Column(name="personcode",nullable=false,unique=true)
    private String personCode;
	@Column(name="personName",nullable=false)
    private String personName;
    private String sex;
    private Integer age;
    private String position;
    private String educationLevel;
    private Integer workingLife;
//    @ManyToOne(optional=true)
//    @JoinColumn(name="manageCode")
//    private IrrBSManageInstitution irrBSManageInstitution;
    private Boolean enable;
    private String password;
    private String role;
//    @OneToOne(mappedBy="irrBSPerson",cascade={CascadeType.MERGE,CascadeType.PERSIST,CascadeType.REFRESH})
//    private IrrBSManageInstitution manageDepart;
//	public String getPersonCode() {
//		return personCode;
//	}
	public void setPersonCode(String personCode) {
		this.personCode = personCode;
	}
	public String getPersonName() {
		return personName;
	}
	public void setPersonName(String personName) {
		this.personName = personName;
	}
	public String isSex() {
		return sex;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getEducationLevel() {
		return educationLevel;
	}
	public void setEducationLevel(String educationLevel) {
		this.educationLevel = educationLevel;
	}
	public Integer getWorkingLife() {
		return workingLife;
	}
	public void setWorkingLife(Integer workingLife) {
		this.workingLife = workingLife;
	}
//	public IrrBSManageInstitution getIrrBSManageInstitution() {
//		return irrBSManageInstitution;
//	}
//	public void setIrrBSManageInstitution(
//			IrrBSManageInstitution irrBSManageInstitution) {
//		this.irrBSManageInstitution = irrBSManageInstitution;
//	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public Boolean getEnable() {
		return enable;
	}
	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
//	public IrrBSManageInstitution getManageDepart() {
//		return manageDepart;
//	}
//	public void setManageDepart(IrrBSManageInstitution manageDepart) {
//		this.manageDepart = manageDepart;
//	}
	public String getSex() {
		return sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
    
}
